package com.songcha.sakura.ui.adapter

import android.content.Context
import android.widget.TextView


import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.songcha.sakura.R
import com.songcha.library_database_sakura.greendao.SearchHistoryBean


class SearchHistoryListAdapter(val mContext: Context, list:MutableList<SearchHistoryBean>) : BaseQuickAdapter<SearchHistoryBean,BaseViewHolder>(R.layout.item_search_history_list,list) {

    init {

    }

    //private var mAddToCartListener:I_AddToCart?=null

     /*fun setOnAddToCartListener(listener:I_AddToCart){
        mAddToCartListener=listener
    }*/


    override fun convert(holder: BaseViewHolder, item: SearchHistoryBean) {

        holder.getView<TextView>(R.id.tv_history).text=item.title




    }

}